Skip to content

fix(web): allow reloading the page during installation#1503

Merged
imobachgs merged 4 commits intomasterfrom
fix-products-suspense
Jul 26, 2024
Merged

fix(web): allow reloading the page during installation#1503
imobachgs merged 4 commits intomasterfrom
fix-products-suspense

Conversation

@imobachgs
Copy link
Copy Markdown
Contributor

The new useProduct hook uses the Suspense API to display a "loading" message while retrieving the
list of products. Unfortunately, that's a problem during installation: the software service won't
response with the list of products and the UI will get stuck.

This PR fixes the problem by adding a suspense option useProduct so you can decide when to use
the Suspense API.

@imobachgs imobachgs force-pushed the fix-products-suspense branch from f101708 to f4eb732 Compare July 26, 2024 11:53
Copy link
Copy Markdown
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just two minor NP comments

Copy link
Copy Markdown
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You were right, it looks better now. Thanks. LGTM

@imobachgs imobachgs merged commit 7f55213 into master Jul 26, 2024
@imobachgs imobachgs deleted the fix-products-suspense branch July 26, 2024 14:32
@imobachgs imobachgs mentioned this pull request Sep 20, 2024
imobachgs added a commit that referenced this pull request Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants